package cn.edu.nju.software.zp13.client.assignment9UsingJAXB.assignment3Refactoring.bean;

import java.util.LinkedList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="students")
public class Students {
	private List<Student> students;
	
	public Students() {
		students=new LinkedList<>();
	}

	@XmlElement(name="student")
	public List<Student> getStudents() {
		return students;
	}

	public void setStudents(List<Student> students) {
		this.students = students;
	}
	
	public void add(Student s){
		students.add(s);
	}
	
}
